﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using iLangl.Tests.SerializationFixture;
using iLangl.Customer.Actions;

namespace iLangl.Tests.PluginFixture
{
	[TestClass]
	public class RegisterCustomerPluginTest : RegistrationPluginValidationTest
	{
		[TestMethod]
		public void RegistrationCustomerPlugin()
		{
			//Setup customer facade
			SwitchToCustomerSide();

			RegisterPluginAction registerPluginAction = new RegisterPluginAction(GetCustomerPluginRegistration());

			registerPluginAction.Send();

			Assert.IsFalse(string.IsNullOrEmpty(registerPluginAction.PluginLicenceKey));
		}
	
	}
}
